{% extends "WebMainSiteBundle:Web:layout.html.twig" %}
{% set title = "用户登录" %}
{% block title %}
    {{ title }}
{% endblock %}
{% block header_category %}{% endblock %}
{% block header_banner %}{% endblock %}
{% block page_header %}
    <div class="page-header">
        <div class="container">
            <div class="row">
                <div class="col-md-7">
                    <h1>{{ title }}</h1>
                </div>
                <div class="col-md-5">
                    <ol class="breadcrumb pull-right">
                        <li><a href="{{ path("WebIndex") }}">主页</a></li>
                        <li class="active">用户登录</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block main %}
    <section class="content-light">
        <div class="container">
            <form class="contact-form" role="form"  method="post" action="{{ path("Login") }}">
                <h2 class="title-form">账号信息</h2>
                <div class="row">
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="email">邮箱</label>
                            <input name="_username" type="text" class="form-control input-lg" id="email" placeholder="常用邮箱" value="{{ lastUser }}" />
                        </div>

                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input name="_password" type="password" class="form-control input-lg" id="password" placeholder="您的登录密码" />
                        </div>
                    </div>
                </div>
                {% if message %}<h2 class="title-form" style="color: red">{{ message }}</h2>{% endif %}
                <p class="text-right buttons-margin-horizontal">
                    <input type="submit" class="btn btn-theme btn-green" value="登录" />
                </p>
            </form>
        </div>
    </section>
{% endblock %}